package list.generics;

import java.util.ArrayList;
import java.util.List;

public class ListUtil {
    private ListUtil() {
    }
    //泛型方法的定义在修饰符的后面
    public static <E> boolean addAll(ArrayList<E> list, E... e) {
        for (E element : e) {
            list.add(element);
        }
        return true;
    }
}
